package com.chzc.fm.duotin.bean.more;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by BillSinla on 2016/7/6.
 */
public class RecommendBean {

    /**
     * id : 90
     * title : 爱奇艺视频
     * describe : 高清首播《我是特种兵3》《咱们结婚吧》等热剧，新版频道升级，跟卡顿说再见~
     * image_url : http://c11.duotin.com/static/uploads/images/2013/11/ba3ec056014f5745a7fff4125833ea85.png
     * install_address : http://app.qiyi.com/common/qiyi378.apk
     */

    private String id;
    private String title;
    private String describe;
    private String image_url;
    private String install_address;

    public static RecommendBean objectFromData(String str) {

        return new Gson().fromJson(str, RecommendBean.class);
    }

    public static List<RecommendBean> arrayRecommendAppFromData(String str) {

        Type listType = new TypeToken<ArrayList<RecommendBean>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getImage_url() {
        return image_url;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }

    public String getInstall_address() {
        return install_address;
    }

    public void setInstall_address(String install_address) {
        this.install_address = install_address;
    }
}
